﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/include/context.jsp" %>

<form action="${ctx}/system/product/save" method="post" style="margin: 0px;" id="updateForm" onsubmit="return updateProduct();">

	<input type="hidden" name="product.id" value="${product.id}">
	<input  type = "hidden" id = "currPageId" name = "currPageId" />
	<table cellspacing="0" cellpadding="0" class="form-grid">
		<tbody>
			<tbody>
				<tr>
					<td style="text-align: right; padding-right: 3px; width: 20%;">产品名称：</td>
					<td colspan="3"><input type="text"  size="50" name="product.productName" value="${product.productName}" dataType="Require" msg="产品名称不能为空"/></td>
				</tr>
				<tr>
					<td style="text-align: right; padding-right: 3px; width: 20%;">产品编号：</td>
					<td colspan="3"><input size="18" type="text" id="product.productCode" name="product.productCode" value="${product.productCode}" ${empty product && product.id == null ? ' dataType="Require" msg=""' : 'readonly="readonly"'}/></td>
				</tr>
				<tr>
					<td style="text-align: right; padding-right: 3px; width: 20%;">产品规格：</td>
					<td colspan="3"><input size="18" type="text" name="product.specification" value="${product.specification }"/></td>
				</tr>
				<tr>
					<td style="text-align: right; padding-right: 3px; width: 20%;">产品类别：</td>
					<td  colspan="3">
						<select name="product.productCategory.id">
							<c:forEach var="category" items="${categorys}" varStatus="status">
								<option value="${category.id}">${category.categoryCode } - ${category.categoryName } </option>
							</c:forEach>
						</select>
					</td>
				</tr>
				<tr>
					<td  style="text-align: right; padding-right: 3px; width: 20%;">产品状态	：</td>
					<td colspan="3">
						<select name="product.productStatus">
							<option value="input">未确认</option>
							<option value="confirm">已确认</option>
						</select>
					</td>
				</tr>
			</tbody>
	</table>
	<div class="window_footer"><input type="submit" value="确定" /></div>
</form>

<%@ include file="/include/script.jsp" %>